package com.jzg.jcptadmin.constant;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by wangyd on 15/12/23.
 * 全局常量类
 */
public class Constant {
    //服务器返回成功的标识
    public static final int SUCCESS = 100;

    //品牌列表如果需要有全部选择项需要传递的标记符
    public static final String CAR_IS_MAKE_ALL = "car.is.make.all";

    //品牌列表选择全部项后的广播
    public static final String CAR_SELECT_ALL_MAKE_BROADCAST = "com.jzg.jcpt.car.select.all.make";

    //车辆选择广播action标记
    public static final String CAR_SELECT_BROADCAST = "com.jzg.jcpt.car.select";

    //城市选择广播action标记
    public static final String CITY_SELECT_BROADCAST = "com.jzg.jcpt.city.select";
    //保存本地车辆后广播action标记
    public static final String CARINFO_BROADCAST = "com.jzg.jcpt.city.select";
    //品牌实体获取标记
    public static final String MAKE = "make";

    //车系实体获取标记
    public static final String MODEL = "model";

    //车型实体获取标记
    public static final String STYLE = "style";

    /**
     * 省实体获取标记
     */
    public static final String PROVINCE = "province";


    public static final String ACTIVITY_CITYITEM = "cityitem";

    /**
     * 市实体获取标记
     */
    public static final String CITY = "city";

    /**
     * 车牌号
     */
    public static final int CARNUM = 0x00000030;
    /**
     * VIN码
     */
    public static final int VIN = 0x00000031;
    /**
     * 联系人
     */
    public static final int CONTACT = 0x00000033;
    public static final int FADAN = 0x00000034;
    public static final int FADANPHONE = 0x00000035;
    public static final int JIANCEXIANG = 0x00000036;
    public static final int ZHENGJIANQUEREN = 0x00000037;
    /**
     * 电话号
     */
    public static final int PHONENUM = 0x00000032;
    public static final String INPUT_VIN = "input_vin";
    public static final String INPUT_TITLE = "input_title";
    public static final String INPUT_HINT = "input_hint";
    public static final String SHOWTEXT = "showText";
    public static final String INPUT_TYPE = "input_type";
    public static final String INPUT_LENGTH = "input_length";
    public static final String ACTIVITY_INPUT = "activity_input";
    public static final String INTPUT_CARNM = "intput_carnm";
    public static final String INPUT_REQUESTCODE = "input_requestcode";
    public static final String CHOOSE_ITEM = "choose_item";
    public static final String CHOOSE_STATE = "choose_state";

    public static final String ACTIVITY_CHOOSE = "activity_choose";
    public static final String ACTIVITY_SOURCEID = "activity_sourceid";

    public static final String ACTIVITY_XINGSHIZHENG = "activity_xingshizheng";
    public static final String ACTIVITY_DENGJIZHENG = "activity_dengjizheng";
    public static final String ACTIVITY_GOUCHEFAPIAO = "ACTIVITY_gouchefapiao";
    public static final String ACTIVITY_BAOXINDAN = "ACTIVITY_baoxindan";
    public static final String ACTIVITY_ZHENGJIANQUEREN = "activity_zhengjianqueren";
    public static final String ACTIVITY_ZHENGJIANQUERENID = "activity_zhengjianquerenid";
    public static final String ACTIVITY_OFFINEID = "activity_offineid";
    public static final String ACTIVITY_RADIO = "activity_radio";
    public static final String ACTIVITY_RADIONAME = "activity_radioname";
    public static final String ACTIVITY_CARLISTID = "activity_carlistid";
    public static final String activity_radio = "activity_radio";
    public static final String activity_radio_pos = "activity_radio_pos";
    public static final String activity_radioGroup = "activity_radioGroup";
    public static final String activity_radio_title = "activity_radio_title";
    public static final String ACTIVITY_INSERT = "activity_insert";
    public static final String ACTIVITY_INSERTID = "activity_insertid";
    public static final String ACTIVITY_TASKVIEWDATA = "activity_taskviewdata";
    public static final String ACTIVITY_KUAISUDATA = "activity_kuaisudata";
    public static final String ACTIVITY_REFRESHCOLOR = "#ff4587C3";
    public static final String ACTIVITY_PUBLISH = "activity_publish";
    public static final String VIN_REPETITION = "此VIN存在重复评估订单，您可查看【评估历史】";

    /**
     * 提示语
     */
    public static final String SHOWTIMETOAST = "开始日期必须小于等于结束日期，请重新选择";
    public static final int pingtai_code = 0x00000160;
    /**
     * 确定列表标题和内容是否有重复标记
     */
    public static final String IS_TITLE = "istitle";
    /**
     * 拍照
     */

    public static final String IMAGE_UNSPECIFIED = "image/*";
    public static final int PHOTO_GRAPH = 0x00000400;
    public static final int PHOTO_ZOOM = 0x00000401;
    public static final int Video_ZOOM = 0x00000402;

    /**
     * 选择时间
     */

    public static final int TIME_SHANGPAI = 0x00000500;
    public static final int TIME_BAOXIAN = 0x00000501;
    public static final int TIME_NIANJIAN = 0x00000502;
    public static final int TIME_START = 0x00000503;
    public static final int TIME_END= 0x00000504;
    //发票金额
    public static final int FAPIAO = 0x00000503;
    //行驶里程
    public static final int MEILEARE = 0x00000504;

    //车身颜色
    public static final int COLORS = 0x00000505;
    //备注信息
    public static final int BEIZHU = 0x00000506;
    public static final int FABUFANGSHI = 0x00000507;
    //成交价
    public static final int CHENGJIAOJIA = 0x00000508;
    //裁接后的图片地址
    public static final String RESULT_PATH = "RESULT_PATH";
    public static final int TOUXIANG = 0x00000600;
    public static final int NICHENG = 0x00000601;
    //搜索
    public static final int SEARCH = 0x00000701;
    public static final int TIME_CHUCHANG = 0x00000702;
    /***
     * 选择品牌车系
     */
    public static final int REQ_CODE_BRAND_SERIES = 0x00000702;
    /***
     * 选择具体车型
     */
    public static final int REQ_CODE_CONCRETE_MODEL = 0x00000703;
    /***
     * 认证照片
     */
    public static final int REQ_CODE_PHOTO_INDETIFY = 0x00000704;
    /***
     * 实拍照片
     */
    public static final int REQ_CODE_PHOTO_REAL = 0x00000705;
    /***
     * 更多照片
     */
    public static final int REQ_CODE_PHOTO_MORE = 0x00000706;
    public static final int REQ_CODE_CHOOSE_RANLIAO = 0x00000707;
    public static final int REQ_CODE_CHOOSE_CARTYPE = 0x00000708;
    public static final int REQ_CODE_SHIYONG_XZ = 0x00000709;
    public static final int REQ_CODE_CAR_COLOR = 0x00000710;
    public static final int REQ_CODE_BIANSUQI = 0x00000711;
    public static final int REQ_CODE_CAR_TYPE = 0x00000712;
    public static final int REQ_CODE_PASSER_NUM = 0x00000713;


    public static final String WEBVIEW_TITLE = "webview_title";  //跳转WebView是否显示自定义title文字 1显示自定义title 2显示链接title

    public static final String KEY_USER_ID="userId";
    public static final String KEY_ARR="arr";
    public static final String KEY_TITLE="title";

    //车系头部信息位置
    public static final int MODEL_HEADER = 0;
    public static String[] CAR_COLORS = {"黑色", "银灰色", "白色", "红色", "蓝色", "深灰色", "香槟色"
            , "绿色", "黄色", "橙色", "紫色", "咖啡色", "多彩色", "其他"};
    public static String[] FABU_PINGTAI = {"精真估平台", "绝当车处理通道", "一汽大众回收", "多平台同步"};
    public static String[] QUDONGFANGSHI = {"前驱", "后驱", "四驱"};
    public static String[] CHELIANGLEIXING = {"三厢", "两厢", "SUV", "MPV", "其他"};
    public static String[] SHIYONGXINGZHI = { "营运", "非营运","营转非"};
    public static String[] CAR_TYPE = { "两厢车", "三厢车","旅行车","轿跑车","掀背车","SUV","MPV","硬顶跑车","敞篷跑车","常规皮卡","豪华皮卡","小型载客车","中型载客车","大型载客车"
                                        ,"房车","开放式载货车","厢式载货车","挂车" };
    public static String[] SHIYONGRANLIAO = {"汽油", "柴油", "电动","混动"};
    //及时系统评估缓存
    public static final String CACHE_RAPIDEVALUATOR = "rapicevaluator";
    public static Map<String, Integer> map = new HashMap<>();
    public static Map<String, Integer> mapcolor = new HashMap<>();
    public static final String errr_net = "网络请求失败，请检查您的网络";
    static {
        mapcolor.put("黑色", 0);
        mapcolor.put("白色", 1);
        mapcolor.put("银灰色", 2);
        mapcolor.put("红色", 3);
        mapcolor.put("蓝色", 4);
        mapcolor.put("深灰色", 5);
        mapcolor.put("绿色", 6);
        mapcolor.put("黄色", 7);
        mapcolor.put("香槟色", 8);
        mapcolor.put("橙色", 9);
        mapcolor.put("紫色", 10);
        mapcolor.put("咖啡色", 11);
        mapcolor.put("多彩色", 12);
        mapcolor.put("其他", 13);
        map.put("两厢", 1);
        map.put("三厢", 2);
        map.put("SUV", 3);
        map.put("MPV", 4);
        map.put("其他", 5);
        //车辆管理状态ID
        map.put("0", -2);
        map.put("1", 0);
        map.put("2", 2);
        //map.put("3",24);
        map.put("3", 4);
        map.put("非营运", 2);
        map.put("营运", 1);
        map.put("营转非", 3);


    }

    //全部任务标记
    public static final int ALL_TASK = 1;
    //今日任务标记
    public static final int TODAY_TASK = 2;
    //昨日任务标记
    public static final int YESTERDAY_TASK = 3;


    //ListView默认加载(0默认，1刷新，2加载）
    public static final int LISTVIEW_DEFAULT = 0;
    public static final int LISTVIEW_REFRESH = 1;
    public static final int LISTVIEW_LOAD_MORE = 2;

    //订单状态
    public static final String ORDER_STATUS = "order_status";
    public static final String VIN_STATE = "vin_state";

}
